package com.jiyinit.web.core.video.manager;

import com.jiyinit.core.framework.base.paging.PagingResult;
import com.jiyinit.web.core.video.service.MroleIconServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * Created by user1 on 2018/12/18.
 */
@Controller
@RequestMapping(value = "/mroleIcon")
public class MobileRoleIconController {

    private static Logger logger = LoggerFactory.getLogger(MobileRoleUserController.class);

    @Resource(name = "core.mroleIconServiceImpl")
    private MroleIconServiceImpl roleIconService;

    @RequestMapping(value = "/roleIcon")
    public String toListPage(){
        return "mobile/roleIcon";
    }

    /**
     * 分页查询
     * @param req
     * @param request
     * @return
     */
    /*@ResponseBody
    @RequestMapping(value = "/roleUser", method = RequestMethod.POST)
    public PagingResult<MobilRoleUserVo> roleUser(HttpServletRequest req, MroleUserRequest request){
        //request = JsonEntityTransform.json2Object(request_json, MroleUserRequest.class);
        logger.info("转换为obj之后的参数: {}", request.toString());
        request.setLimit(10);
        PagingResult<MobilRoleUserVo> pag = service.findAllBySelective(request);
        return pag;
    }*/

}
